<html>
    <head>
        <script type="text/javascript">
            function samplepopup() {
                window.open( "testkey.txt", "myWindow",
                "status = 1, height = 400, width = 1000, resizable = 0" )
            }
        </script>
    </head>
    <body>
        <h2 class="help">
            <font font-size:0.7em font-weight:200 color:grey face="Verdana, Geneva, sans-serif">
            Welcome to Botany dichotomous Key Conversion System
            </font> <br> <br>
            <font size="3" color="black" >
                Botany dichotomous Key Conversion System is a web based application that lets you
                generate an XML dichotomous key which can be used in the Android and iPhone Field Identification
                and Data collection applications.
                <br><br>

                Botany dichotomous Key Conversion System lets you upload a text file containing a Dichotomous key 
                organized in the standard format(1-1', 2-2' hierarchical format). You can upload images for the organisms
                and decision nodes in the dichotomous key. It also allows you upload to other dichotomous key related 
                information such as basic information, characteristics information and glossary information.
                The system generates an output .ZIP file which contains an XML file for the dichotomous key, uploaded images
                and the dichotomous key text file.
                This application is fully functional and works on Firefox, Chrome and Internet Explorer browsers.
                <br><br>

                <font size="4" color="black" ><u>Input File Format</u> <br><br> </font>
                Botany dichotomous Key conversion System uses Jepson Manual Dichotomous Key format as a standard for 
                the input file format. A dichotomous key in the input text file should be organized hierarchically using 
                a number and a corresponding number prime. Each line in the text file representing a decision node
                must begin with a number(e.g. 1) or number prime (e.g. 1') followed by a dot(.) and then 
                a text line representing a dichotomous key choice (e.g. Thin, deciduous leaves). 
                Some lines in the dichotomous key represents organism names. In the example, 
                Black Oak (Quercus kelloggii) is an organism name. The lines that starts with a number or number prime or that 
                represents organism name should begin on a new line. 
                For every number in the text file, there should be an equivalent number prime present and vice versa. Click
                following button to view a sample input file containing a Oak's key. 
                <br><button id="sampleFile" type="button" onclick="samplepopup()"> View Sample Input File </button><br><br>

                <font size="4" color="black"><u>Getting Started</u><br><br> </font>
                    Open a firefox or Chrome or IE web browser and enter the url http://dbproj.sfsu.edu/~rane/DbProjKeyConversion/<br>
                    <ul>
                    <li>Step 1: Upload a text file<br>
                        Select an input text file containing a dichotomous key using 'Browse' button and click 'Upload' button</li><br><br>
                    <li>Step 2: Enter basic information<br>
                        Enter basic information for the dichotomous key. Basic information fields include Title, Author, Date and Image. 
                        Required fields are indicated by '*'. Title is the only required field. After entering the basic
                        information, click 'Next' to upload the information.</li><br><br>
                    <li>Step 3: Upload Organism Images<br>
                        Select image files to upload using <i>"Add Image"</i> link. The image formats supported are .PNG, .JPG and .GIF.
                        You can upload multiple images for each organism. After selecting all the image files, click 'Next'
                        to upload the files. Uploading images for the organisms is optional. If you don't want to upload any image, 
                        just click 'Next' to go to the next step.</li><br><br>
                    <li>Step 4: Upload Decision Node Images<br>
                        Select image files to upload using <i>"Add Image"</i> link. The image formats supported are .PNG, .JPG and .GIF.
                        You can upload multiple images for each decision node. After selecting all the image files, click 'Next'
                        to upload the files. Uploading images for the decision nodes is optional. If you don't want to upload any image, 
                        just click 'Next' to go to the next step.</li><br><br>
                    <li>Step 5: Enter characteristics<br>
                        Enter characteristics information for each organism in the dichotomous key. Characteristic fields
                        are Family, Genus, Epithet), leaves, Inflorescence, Flower, Fruit, Ecology, Seeds, Elevation, 
                        Bioregional Distribution, Taxon id and Jepson URL. Required fields are indicated by '*'.
                        Family and Genus are the only required fields. After entering the characteristics information, 
                        click 'Next' to upload the information.</li><br><br>
                    <li>Step 6: Enter glossary information<br>
                        Enter glossary terms for the dichotomous key using 'Add Glossary Term' button. You can upload multiple 
                        glossary terms. Glossary fields for each glossary term include Title, Description and Image.
                        For each glossary term you can upload one image. The image formats supported are .PNG, .JPG and .GIF.
                        After entering the glossary information, click 'Submit' to upload the information. 
                        Uploading glossary terms is optional. If you don't want to upload any glossary term, just click 'Submit' button.</li><br>
                    </ul><br><br>
                    
                    <font size="4" color="black" ><u>Download output .ZIP file</u> <br><br> </font>
                        Click the "Download .ZIP File" link  to download the output .ZIP file. On click of "Download .ZIP File" link, a pop-up 
                        window will open. Click "Save File" option in the pop-up window to save the output .ZIP file. 
                        The output .ZIP file contains an XML file(keyconversion.xml), a text file(testkey.txt) and all the 
                        uploaded images in .PNG format. If you want to convert another dichotomous key, 
                        click "Back to main page" link. This will redirect you to the home page of the website. <br><br>
            </font>


        </h2>
    </body>
</html>